<?php
class ControllerReportCustomerOnline extends AdminController {
  	public function index() {

    	$this->document->setTitle($this->_['heading_title']);

		$qf = new Query_filter();

		M('report/online');

		$customer_total = $this->model_report_online->getTotalCustomersOnline($qf);
		$this->data['customers'] = $this->model_report_online->getCustomersOnline($qf);

		$this->data['pagination'] = $this->pagination($customer_total)->render();

		$this->data['filter_customer'] = $qf->get('filter_customer');
		$this->data['filter_ip'] = $qf->get('filter_ip');

		$this->display('report/customer_online.tpl');
  	}
}
?>